package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wumu
 * @since 2019-11-14
 */
public class DevAlarmLog extends Model<DevAlarmLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long alarmId;

    private String alarmName;

    private Integer alarmType;

    private String alarmThreshold;

    private String alarmSendType;

    private Long collectionId;

    private String collectionName;

    private Float actualValue;

    private String type;

    private Long createTime;

    private Integer status;

    private Long dispatchTime;

    private String content;

    private String tenantId;

    private Integer areaId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAlarmId() {
        return alarmId;
    }

    public void setAlarmId(Long alarmId) {
        this.alarmId = alarmId;
    }

    public String getAlarmName() {
        return alarmName;
    }

    public void setAlarmName(String alarmName) {
        this.alarmName = alarmName;
    }

    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    public String getAlarmThreshold() {
        return alarmThreshold;
    }

    public void setAlarmThreshold(String alarmThreshold) {
        this.alarmThreshold = alarmThreshold;
    }

    public String getAlarmSendType() {
        return alarmSendType;
    }

    public void setAlarmSendType(String alarmSendType) {
        this.alarmSendType = alarmSendType;
    }

    public Long getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(Long collectionId) {
        this.collectionId = collectionId;
    }

    public String getCollectionName() {
        return collectionName;
    }

    public void setCollectionName(String collectionName) {
        this.collectionName = collectionName;
    }

    public Float getActualValue() {
        return actualValue;
    }

    public void setActualValue(Float actualValue) {
        this.actualValue = actualValue;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getDispatchTime() {
        return dispatchTime;
    }

    public void setDispatchTime(Long dispatchTime) {
        this.dispatchTime = dispatchTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevAlarmLog{" +
        "id=" + id +
        ", alarmId=" + alarmId +
        ", alarmName=" + alarmName +
        ", alarmType=" + alarmType +
        ", alarmThreshold=" + alarmThreshold +
        ", alarmSendType=" + alarmSendType +
        ", collectionId=" + collectionId +
        ", collectionName=" + collectionName +
        ", actualValue=" + actualValue +
        ", type=" + type +
        ", createTime=" + createTime +
        ", status=" + status +
        ", dispatchTime=" + dispatchTime +
        ", content=" + content +
        ", tenantId=" + tenantId +
        ", areaId=" + areaId +
        "}";
    }
}
